package com.sanyu.controller.repairman;

import com.sanyu.pojo.dto.MessagePageQueryDTO;
import com.sanyu.pojo.vo.MessageVO;
import com.sanyu.result.PageResult;
import com.sanyu.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/repairman/message")
@Api("维修APP/通知相关接口")
public class MessageController {
    @GetMapping("/{id}")
    @ApiOperation("根据消息ID获取通知详细信息")
    public Result getMessageById(@PathVariable Long id){
        MessageVO messageVO = new MessageVO();
        return Result.success(messageVO);
    }

    @GetMapping("/page")
    @ApiOperation("分页查询通知列表")
    public Result<PageResult> page(MessagePageQueryDTO messagePageQueryDTO){
        PageResult pageResult = new PageResult();
        return Result.success(pageResult);
    }
}
